#include <libmslog/mslog.h>
#include <libmstool/msautomount.h>
#include <libmscommon/mssignal.h>
#include <libmscommon/msmd.h>

int ms_automount(void *arg)
{
	mslog_api_init( 53, ms_null,ms_null, ms_null);
	mssignal_api_catch("automount");
	msautomnt_api_init();
	msautomnt_api_detectHotplug();	
	msautomnt_api_deinit();
	mslog_api_deinit();
	return 0;  
}

int main(int argc, char * argv[])
{
	msmd_api_watchdog((int (*)(void *))ms_automount,ms_null);
	return 0;  
}

